package com.bk.util;

import java.util.List;

/**
 * 统一返回对象
 * 
 * @author czl
 *
 */ 
public class ReturnUtil<T> {

	// 返回码
	private Integer code;
	// 返回信息
	private String message;
	// 返回数据
	private List<T> data;

	//单实体
	private T vo;
	
	public ReturnUtil(Integer code, String message, List<T> data) {
		super();
		this.code = code;
		this.message = message;
		this.data = data;
	}
	


	public ReturnUtil(Integer code, T vo,String message) {
		super();
		this.code = code;
		this.message = message;
		this.vo = vo;
	}



	public ReturnUtil() {
	}


	public T getVo() {
		return vo;
	}


	public void setVo(T vo) {
		this.vo = vo;
	}


	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}


	public List<T> getData() {
		return data;
	}


	public void setData(List<T> data) {
		this.data = data;
	}


}
